---
title: "Ubuntu 接上某些键盘F1~F12工作异常"
date: 2019-11-22
categories:
- linux
tags:
---

<div id="content">
<blockquote>
<p>
<a href="https://askubuntu.com/questions/818413/how-can-i-toggle-the-fn-function-key">https://askubuntu.com/questions/818413/how-can-i-toggle-the-fn-function-key</a>
</p>
</blockquote>
<p>
If you have an Apple keyboard and want to function keys act like F1-F12 by default (disable Fn default behavior) give the following command in terminal:
</p>
<div class="org-src-container">
<pre class="src src-sh"><span style="font-weight: bold;">echo</span> 2 | sudo tee /sys/module/hid_apple/parameters/fnmode
</pre>
</div>
<p>
from here: <a href="https://help.ubuntu.com/community/AppleKeyboard#Change_Function_Key_behavior">https://help.ubuntu.com/community/AppleKeyboard#Change_Function_Key_behavior</a>
</p>
</div>
<div class="status" id="postamble">
<p class="date">Date: 2019-11-22</p>
<p class="author">Author: amo</p>
<p class="validation"><a href="http://validator.w3.org/check?uri=referer">Validate</a></p>
</div>
